<#include "/includes/header.ftl">
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
<TR>
	<TD width="120" valign="top"><#include "includes/leftbar.ftl"></TD>	
	<TD valign="top" width="90%">
	<#-- Main Content-->
	<table width="100%" border="0">
  <form name="edit_site_message_form" action='<@spring.url "/approvesite2message.jsp"/>' method="post" onsubmit="return check_form(create_account);">
  <@spring.bind "command.site2Content.sysId" />    
  <INPUT type="hidden" name="${spring.status.expression}" value='${spring.status.value?default("")}'  />
  <INPUT type="hidden" name="ssid" value='${spring.status.value?default("")}'  />
  <tr>
    <th width="10%" nowrap="nowrap" scope="row" colspan="3" align="center"><b>编辑委托租售商品资料</b></th>
  </tr>
  <tr>
    <th width="10%" nowrap="nowrap" scope="row"><div align="right">商品名称: </div></th>
    <td width="90%">
	          <@spring.bind "command.user2Content.content.name" />    
				    <div align="left"><a href='<@spring.url "/viewproductdetail.jsp?csid=${command.user2Content.content.sysId}"/>'>${spring.status.value?default("no-product-name")}</a> </div>
	          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
    </td>
    <td width="1%" rowspan="4" valign="top"><div align="left"><a href="../productdetail.html"><img src="../IMAGES/content.jpg" width="130" height="98" border="0" /></a></div></td>
  </tr>
  <tr>
    <th nowrap="nowrap" scope="row"><div align="right">委托租售价: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.user2Content.price" />    
          <INPUT type="text" name="${spring.status.expression}" value='${spring.status.value?default(0.0)?string("0.00")}' size="8" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
      </div>
    </label></td>
    </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">委托租售说明: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.user2Content.shortDesc" />    
        <textarea name="${spring.status.expression}" cols="60" rows="6">${spring.status.value?default("Please input your sale comment for this product")}</textarea>
        </div>
    </label></td>
    </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">补充商品图片1: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.user2Content.userContentImage1" />    
          <INPUT type="file" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
        </div>
    </label></td>
    </tr>
  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">补充商品图片2: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.user2Content.userContentImage2" />    
          <INPUT type="file" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
        </div>
    </label></td>
    </tr>
  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">补充商品图片3: </div></th>
    <td><label>
      <div align="left">
         <@spring.bind "command.user2Content.userContentImage3" />    
          <INPUT type="file" name="${spring.status.expression}" value='${spring.status.value?default("")}' size="64" />
          <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
        </div>
    </label></td>
    </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">指定委托租售的商店: <#if user2StoreGroupList?has_content>	<br>请从你收藏的店铺中选择：</#if></div></th>
    <td><label>
      <div align="left">
				<#if user2StoreGroupList?has_content>					
					<#list user2StoreGroupList as user2SiteList>
						<#list user2SiteList as u2s>
							<#assign chkflag=u2s.site.sysId+"_delegated_flag">
							<INPUT type="checkbox" name="siteSysId" value='${u2s.site.sysId}' <#list delegatedFlags?keys as key><#if key == u2s.site.sysId>checked</#if></#list> />${u2s.site.name?default("no-name")}&nbsp;							
						</#list>
					</#list>					
				<#else>
					你还有没有任何收藏的店铺！	
				</#if>
      </div>
    </label></td>
    </tr>
    
	  <tr>
    <th width="1%" nowrap="NOWRAP" scope="row" valign="top"><div align="right">状态: </div></th>
    <td>
      <@spring.bind "command.user2Content.status" />
      <#assign status = spring.status.value?default(2101)>
      <#if status == 2103>
		  <INPUT type="radio" name="${spring.status.expression}" value="2101" disabled <#if status == 2101>checked</#if>>编辑中&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2102" disabled <#if status == 2102>checked</#if>>申请审批&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2103" disabled <#if status == 2103>checked</#if>>审批未通过&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2104" disabled <#if status == 2104>checked</#if>>被禁止&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2105" disabled <#if status == 2105>checked</#if>>已上线&nbsp;&nbsp;
		  <#else>
		  <INPUT type="radio" name="${spring.status.expression}" value="2101" <#if status == 2101>checked</#if>>编辑中&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2102" <#if status == 2102>checked</#if>>申请审批&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2103" disabled <#if status == 2103>checked</#if>>审批未通过&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2104" disabled <#if status == 2104>checked</#if>>被禁止&nbsp;&nbsp;
		  <INPUT type="radio" name="${spring.status.expression}" value="2105" <#if status == 2105>checked</#if>>已上线&nbsp;&nbsp;
		  </#if>
      <#list spring.status.errorMessages as error><font color=#cc0000>${error}</font><br /></#list>
		</td>
    </tr>

  <tr>
    <th valign="top" nowrap="nowrap" scope="row"><div align="right">说明: </div></th>
    <td><label>
      <div align="left"><font color="red">系统管理员有权批准或禁止您的销售信息上线．</font></div>
    </label></td>
    </tr>
    
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2"><label>
      <div align="left">
        <input type="submit" name="Submit" value="Save" />
        </div>
    </label></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td colspan="2">&nbsp;</td>
  </tr>
  </form>
</table>
	
	<#-- /Main Content-->
	</TD>	
	<TD valign="top"><#include "/includes/rightbar.ftl"></TD>
</TR>
</TABLE>

<#include "/includes/footer.ftl">